package com.biscuit.page.basicservice.api;

import com.biscuit.common.base.BaseResponse;
import com.biscuit.common.annotation.RequestWhitelist;
import com.biscuit.page.basicservice.api.model.response.common.NicknameAResp;
import com.biscuit.page.basicservice.api.model.response.open_common.GeneratePublicPrivateKeyAResp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author biscuit
 * @createTime 2024/5/17 10:07
 */
@Api(tags = "对外公共接口")
@RequestMapping("/open/common")
public interface OpenCommonRemote {

    @RequestWhitelist
    @ApiOperation(value = "生成随机昵称")
    @GetMapping("generateNickname")
    BaseResponse<NicknameAResp> generateNickname();

    @RequestWhitelist
    @ApiOperation(value = "生成非对称公私钥")
    @GetMapping("generatePublicPrivateKey")
    BaseResponse<GeneratePublicPrivateKeyAResp> generatePublicPrivateKey();

}
